package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weixing.mall.provider.model.domain.StockCheckProductPerson;
import com.weixing.mall.provider.model.vo.StockCheckProductVo;
import com.weixing.mall.provider.model.vo.StockCheckVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 盘点单商品关联盘点人表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-15
 */
public interface StockCheckProductPersonMapper extends BaseMapper<StockCheckProductPerson> {

    StockCheckProductPerson selectStockCheckProductPerson(@Param("stockPerson")Long stockPerson, @Param("checkProduct")Long checkProduct);

    void updateSpecificDetails(@Param("productPersonId")Long productPersonId,@Param("quantity")int quantity);

    void finish(@Param("userId")Long userId,@Param("isFinish")int isFinish ,@Param("checkProduct")Long checkProduct);

    List<StockCheckProductVo> sumByCheckId(@Param("sumByCheckId") Long sumByCheckId);

    StockCheckProductPerson findStockCheckProductPerson(@Param("stockPerson")Long stockPerson, @Param("productId")Long productId,@Param("checkProductId")Long checkProductId, @Param("checkId")Long checkId);
}
